package com.wise.summer.v1.portal.content.menus;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@Publish
@SkipUserAuth
@ApiInfo("查询菜单列表")
public class ListMenus extends BasicSummer<List<ListMenus.Result>> {
	@Getter
	@Setter
	public static class Result {

		/**
		 * 菜单图标
		 */
		@ApiInfo("菜单图标")
		@Column("icon")
		private String icon;

		/**
		 * 菜单路由
		 */
		@ApiInfo("菜单路由")
		@Column("url")
		private String url;

		/**
		 * 菜单名
		 */
		@ApiInfo("菜单名")
		@Column("name")
		private String name;

		/**
		 * 菜单是否在底部显示
		 * 0:不显示   1：显示
		 */
		@ApiInfo("菜单是否在底部显示" +
				"0:不显示   1：显示")
		@Column("showStatus")
		private Integer showStatus;

		@ApiInfo("菜单是否启用状态" +
				"0：不启用   1：启用")
		@Column("state")
		private Integer state;

		/**
		 * 菜单类型,默认0
		 */
		@ApiInfo("菜单类型")
		@Column("type")
		private Integer type;

		@ApiInfo("扩展信息")
		private String extContent;

		@ApiInfo("子节点数据")
		private List<Result> childList;

		@ApiInfo("微服务别名")
		private String alias;

		@ApiInfo("菜单资源url")
		private String path;
		@ApiInfo("文件名")
		private String fileName;

		@ApiInfo("菜单图")
		private String titlePic;

		@ApiInfo("description")
		private String description;

		@ApiInfo("图片高度")
		private String titlePicHeight;


	}

}
